
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
	TEST(should be able to calc perimeter: side length=10, perimeter=40)
	{
		Square square(10);
		ASSERT_EQ(40, square.getPerimeter());
	}

	TEST(should be able to calc area: side length=10, area=100)
	{
		Square square(10);
		ASSERT_EQ(100, square.getArea());
	}

	TEST(should be able to calc area: side length=15, perimeter=60, area=225)
	{
		Square square(10);
		ASSERT_EQ(15, square.setSideLength(15));
		ASSERT_EQ(60, square.getPerimeter());
		ASSERT_EQ(225, square.getArea());
	}
};
